<?php
include("../inc/function.php");
header("Content-type: text/html;charset=gb2312");
$server=safeData("server","get");
$dbname=safeData("db","get");
$id=safeData("id","get");
$pwd=safeData("pwd","get");
$lnk=mysql_connect($server,$id,$pwd)
	or die('servererror');
mysql_select_db($dbname,$lnk)
	or die('dberror');
echo("ok");
?>